package de.tud.etit;

import java.io.File;

public class DirectoryUtils {

	public static void cleanupDirectory(String path) {
		System.out.println("Lösche Ordner: " + path);
		File directory = new File(path);
		delete(directory);
	}

	private static void delete(File file) {
		if (file.isDirectory()) {
			for (File f : file.listFiles()) {
				delete(f);
			}
		}
		
		file.delete();
	}
}